﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000A4D RID: 2637
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class LineupAvatar : IMessage<LineupAvatar>, IMessage, IEquatable<LineupAvatar>, IDeepCloneable<LineupAvatar>, IBufferMessage
	{
		// Token: 0x1700214E RID: 8526
		// (get) Token: 0x06007625 RID: 30245 RVA: 0x0013B503 File Offset: 0x00139703
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<LineupAvatar> Parser
		{
			get
			{
				return LineupAvatar._parser;
			}
		}

		// Token: 0x1700214F RID: 8527
		// (get) Token: 0x06007626 RID: 30246 RVA: 0x0013B50A File Offset: 0x0013970A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return LineupAvatarReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002150 RID: 8528
		// (get) Token: 0x06007627 RID: 30247 RVA: 0x0013B51C File Offset: 0x0013971C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return LineupAvatar.Descriptor;
			}
		}

		// Token: 0x06007628 RID: 30248 RVA: 0x0013B523 File Offset: 0x00139723
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LineupAvatar()
		{
		}

		// Token: 0x06007629 RID: 30249 RVA: 0x0013B52C File Offset: 0x0013972C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LineupAvatar(LineupAvatar other) : this()
		{
			this.slot_ = other.slot_;
			this.id_ = other.id_;
			this.satiety_ = other.satiety_;
			this.spBar_ = ((other.spBar_ != null) ? other.spBar_.Clone() : null);
			this.avatarType_ = other.avatarType_;
			this.hp_ = other.hp_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600762A RID: 30250 RVA: 0x0013B5A8 File Offset: 0x001397A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LineupAvatar Clone()
		{
			return new LineupAvatar(this);
		}

		// Token: 0x17002151 RID: 8529
		// (get) Token: 0x0600762B RID: 30251 RVA: 0x0013B5B0 File Offset: 0x001397B0
		// (set) Token: 0x0600762C RID: 30252 RVA: 0x0013B5B8 File Offset: 0x001397B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Slot
		{
			get
			{
				return this.slot_;
			}
			set
			{
				this.slot_ = value;
			}
		}

		// Token: 0x17002152 RID: 8530
		// (get) Token: 0x0600762D RID: 30253 RVA: 0x0013B5C1 File Offset: 0x001397C1
		// (set) Token: 0x0600762E RID: 30254 RVA: 0x0013B5C9 File Offset: 0x001397C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x17002153 RID: 8531
		// (get) Token: 0x0600762F RID: 30255 RVA: 0x0013B5D2 File Offset: 0x001397D2
		// (set) Token: 0x06007630 RID: 30256 RVA: 0x0013B5DA File Offset: 0x001397DA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Satiety
		{
			get
			{
				return this.satiety_;
			}
			set
			{
				this.satiety_ = value;
			}
		}

		// Token: 0x17002154 RID: 8532
		// (get) Token: 0x06007631 RID: 30257 RVA: 0x0013B5E3 File Offset: 0x001397E3
		// (set) Token: 0x06007632 RID: 30258 RVA: 0x0013B5EB File Offset: 0x001397EB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SpBarInfo SpBar
		{
			get
			{
				return this.spBar_;
			}
			set
			{
				this.spBar_ = value;
			}
		}

		// Token: 0x17002155 RID: 8533
		// (get) Token: 0x06007633 RID: 30259 RVA: 0x0013B5F4 File Offset: 0x001397F4
		// (set) Token: 0x06007634 RID: 30260 RVA: 0x0013B5FC File Offset: 0x001397FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarType AvatarType
		{
			get
			{
				return this.avatarType_;
			}
			set
			{
				this.avatarType_ = value;
			}
		}

		// Token: 0x17002156 RID: 8534
		// (get) Token: 0x06007635 RID: 30261 RVA: 0x0013B605 File Offset: 0x00139805
		// (set) Token: 0x06007636 RID: 30262 RVA: 0x0013B60D File Offset: 0x0013980D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Hp
		{
			get
			{
				return this.hp_;
			}
			set
			{
				this.hp_ = value;
			}
		}

		// Token: 0x06007637 RID: 30263 RVA: 0x0013B616 File Offset: 0x00139816
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as LineupAvatar);
		}

		// Token: 0x06007638 RID: 30264 RVA: 0x0013B624 File Offset: 0x00139824
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(LineupAvatar other)
		{
			return other != null && (other == this || (this.Slot == other.Slot && this.Id == other.Id && this.Satiety == other.Satiety && object.Equals(this.SpBar, other.SpBar) && this.AvatarType == other.AvatarType && this.Hp == other.Hp && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06007639 RID: 30265 RVA: 0x0013B6B4 File Offset: 0x001398B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Slot != 0U)
			{
				num ^= this.Slot.GetHashCode();
			}
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this.Satiety != 0U)
			{
				num ^= this.Satiety.GetHashCode();
			}
			if (this.spBar_ != null)
			{
				num ^= this.SpBar.GetHashCode();
			}
			if (this.AvatarType != AvatarType.None)
			{
				num ^= this.AvatarType.GetHashCode();
			}
			if (this.Hp != 0U)
			{
				num ^= this.Hp.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600763A RID: 30266 RVA: 0x0013B773 File Offset: 0x00139973
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600763B RID: 30267 RVA: 0x0013B77B File Offset: 0x0013997B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600763C RID: 30268 RVA: 0x0013B784 File Offset: 0x00139984
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Id != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Id);
			}
			if (this.AvatarType != AvatarType.None)
			{
				output.WriteRawTag(56);
				output.WriteEnum((int)this.AvatarType);
			}
			if (this.Slot != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Slot);
			}
			if (this.Hp != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Hp);
			}
			if (this.spBar_ != null)
			{
				output.WriteRawTag(114);
				output.WriteMessage(this.SpBar);
			}
			if (this.Satiety != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Satiety);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600763D RID: 30269 RVA: 0x0013B850 File Offset: 0x00139A50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Slot != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Slot);
			}
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this.Satiety != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Satiety);
			}
			if (this.spBar_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.SpBar);
			}
			if (this.AvatarType != AvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AvatarType);
			}
			if (this.Hp != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Hp);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600763E RID: 30270 RVA: 0x0013B908 File Offset: 0x00139B08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(LineupAvatar other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Slot != 0U)
			{
				this.Slot = other.Slot;
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			if (other.Satiety != 0U)
			{
				this.Satiety = other.Satiety;
			}
			if (other.spBar_ != null)
			{
				if (this.spBar_ == null)
				{
					this.SpBar = new SpBarInfo();
				}
				this.SpBar.MergeFrom(other.SpBar);
			}
			if (other.AvatarType != AvatarType.None)
			{
				this.AvatarType = other.AvatarType;
			}
			if (other.Hp != 0U)
			{
				this.Hp = other.Hp;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600763F RID: 30271 RVA: 0x0013B9C0 File Offset: 0x00139BC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007640 RID: 30272 RVA: 0x0013B9CC File Offset: 0x00139BCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 80U)
				{
					if (num == 32U)
					{
						this.Id = input.ReadUInt32();
						continue;
					}
					if (num == 56U)
					{
						this.AvatarType = (AvatarType)input.ReadEnum();
						continue;
					}
					if (num == 80U)
					{
						this.Slot = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 96U)
					{
						this.Hp = input.ReadUInt32();
						continue;
					}
					if (num == 114U)
					{
						if (this.spBar_ == null)
						{
							this.SpBar = new SpBarInfo();
						}
						input.ReadMessage(this.SpBar);
						continue;
					}
					if (num == 120U)
					{
						this.Satiety = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04002D09 RID: 11529
		private static readonly MessageParser<LineupAvatar> _parser = new MessageParser<LineupAvatar>(() => new LineupAvatar());

		// Token: 0x04002D0A RID: 11530
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002D0B RID: 11531
		public const int SlotFieldNumber = 10;

		// Token: 0x04002D0C RID: 11532
		private uint slot_;

		// Token: 0x04002D0D RID: 11533
		public const int IdFieldNumber = 4;

		// Token: 0x04002D0E RID: 11534
		private uint id_;

		// Token: 0x04002D0F RID: 11535
		public const int SatietyFieldNumber = 15;

		// Token: 0x04002D10 RID: 11536
		private uint satiety_;

		// Token: 0x04002D11 RID: 11537
		public const int SpBarFieldNumber = 14;

		// Token: 0x04002D12 RID: 11538
		private SpBarInfo spBar_;

		// Token: 0x04002D13 RID: 11539
		public const int AvatarTypeFieldNumber = 7;

		// Token: 0x04002D14 RID: 11540
		private AvatarType avatarType_;

		// Token: 0x04002D15 RID: 11541
		public const int HpFieldNumber = 12;

		// Token: 0x04002D16 RID: 11542
		private uint hp_;
	}
}
